<?php
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
$api = app('Flower\Core\Routing\Router');
$api->version('v1', function ($api) {
    $api->group(['middleware' => 'api.auth', 'providers' => ['basic']], function ($api) {
	            // 定时任务
     $api->post('rank_store_sys', 'App\Modules\DataCenter\Controllers\StatisticsController@rankStore');
		// 收银端 店铺数据
	    $api->post('get_cashier_data_header', 'App\Modules\DataCenter\Controllers\CashierStatisticsController@getDataStoreDashboardData');

	    // 客情
	    $api->post('get_cashier_data_member_statistics', 'App\Modules\DataCenter\Controllers\CashierStatisticsController@getMemberSourceData');


        // 店长 数据中心 头部信息 Happy dong 2019-08-19 10:44

	    $api->post('get_boss_data_center', 'App\Modules\DataCenter\Controllers\StatisticsController@getBossDataCenter');
        // 店长 数据中心 头部信息 Happy dong 2019-08-19 10:44
        $api->post('get_center_store_head', 'App\Modules\DataCenter\Controllers\StatisticsController@getDataStoreHead');

        // 店长数据中心 订单经营数据分析 HappyDong 2019-09-28 16:31
	    $api->post('get_center_store_order_info', 'App\Modules\DataCenter\Controllers\StatisticsController@getStoreBusinessData');

	    //  店长数据中心 订单经营数据类型详情 HappyDong 2019-09-28 16:31
	    $api->post('get_center_store_order_detail', 'App\Modules\DataCenter\Controllers\StatisticsController@getStoreBusinessList');

	    //  店长数据中心 利润数据类型详情 HappyDong 2019-09-28 16:31
	    $api->post('get_center_store_profit_info', 'App\Modules\DataCenter\Controllers\StatisticsController@getStoreProfit');

	    //  店长数据中心 支付方式类型详情 HappyDong 2019-09-28 16:31
	    $api->post('get_center_store_payment_info', 'App\Modules\DataCenter\Controllers\StatisticsController@getStorePayment');

	    //  店长数据中心 支付方式列表详情 HappyDong 2019-09-28 16:31
	    $api->post('get_center_store_payment_list', 'App\Modules\DataCenter\Controllers\StatisticsController@getStorePaymentList');


	    //  店长数据中心 员工业绩类型详情 HappyDong 2019-09-28 16:31
	    $api->post('get_center_store_achievement', 'App\Modules\DataCenter\Controllers\StatisticsController@getStoreAchievement');

        // 店长 数据中心 昨日经营数据 Happy dong 2019-08-19 10:44
        $api->post('get_center_operating_yesterday', 'App\Modules\DataCenter\Controllers\StatisticsController@getOperatingDataYesterday');
        // 店长数据中心 访客部分 Happy dong 2019-08-19 10:44
        $api->post('get_center_visitor_data', 'App\Modules\DataCenter\Controllers\StatisticsController@getVisitorData');
        // 店长数据中心 访客列表 Happy dong 2019-08-19 10:44
        $api->post('get_center_visitor_list', 'App\Modules\DataCenter\Controllers\StatisticsController@getVisitorList');
        // 店长数据中心 订单列表 Happy dong 2019-08-19 10:44
        $api->post('get_center_order_list', 'App\Modules\DataCenter\Controllers\StatisticsController@getOrderList');
        // 店长数据中心 订单部分数据 Happy dong 2019-08-19 14:12
        $api->post('get_center_order_data', 'App\Modules\DataCenter\Controllers\StatisticsController@getOrderData');
        // 店长数据中心 订单饼图
        $api->post('get_center_order_pie_data', 'App\Modules\DataCenter\Controllers\StatisticsController@getPieChartOrderData');
        // 店长数据中心 支付方式柱状图
        $api->post('get_center_payment_bar_data', 'App\Modules\DataCenter\Controllers\StatisticsController@getPaymentBarChartList');
        //店长数据中心 会员卡数据
        $api->post('get_center_member_card_data', 'App\Modules\DataCenter\Controllers\StatisticsController@getMemberCardDataCenter');
        //店长数据中心 会员卡订单列表数据
        $api->post('get_center_card_flow_list', 'App\Modules\DataCenter\Controllers\StatisticsController@getCardFlowDataCenter');
        //店长数据中心 指定用户数据
        $api->post('get_center_order_point_data', 'App\Modules\DataCenter\Controllers\StatisticsController@getOrderPointData');
        //店长数据中心 指定剪发师订单列表
        $api->post('get_center_order_point_list', 'App\Modules\DataCenter\Controllers\StatisticsController@getOrderPointListData');
        //店长数据中心 理发师排名
        $api->post('get_center_barber_rank_data', 'App\Modules\DataCenter\Controllers\StatisticsController@getBarberRankData');
        //店长数据中心 数据中心 服务排名列表
        $api->post('get_center_order_service_list', 'App\Modules\DataCenter\Controllers\StatisticsController@getOrderServiceList');
        //店长数据中心 数据中心 服务排名data
        $api->post('get_center_order_service_data', 'App\Modules\DataCenter\Controllers\StatisticsController@getOrderServiceData');
        //店长数据中心 数据中心 贡献值数据
        $api->post('get_center_contribution_amount_data', 'App\Modules\DataCenter\Controllers\StatisticsController@getContributionAmountData');
        //店长数据中心 数据中心 贡献服务排名
        $api->post('get_center_contribution_service_list', 'App\Modules\DataCenter\Controllers\StatisticsController@getContributionServiceList');
        //店长数据中心 数据中心 贡献值理发师排名
        $api->post('get_center_contribution_barber_list', 'App\Modules\DataCenter\Controllers\StatisticsController@getContributionBarberList');
        //店长数据中心 数据中心 工资
        $api->post('get_center_barber_salary_data', 'App\Modules\DataCenter\Controllers\StatisticsController@getCenterUserSalaryData');
         //店长数据中心 数据中心 工资列表
        $api->post('get_center_barber_salary_list', 'App\Modules\DataCenter\Controllers\StatisticsController@getCenterUserSalaryList');


        // 权限测试
        $api->post('auth', 'App\Modules\Employee\Controllers\EmployeeController@auth');
        // 控制台角色切换 接口 HappyDong 2019-08-09 14:36
        $api->post('get_user_info', 'App\Modules\Employee\Controllers\EmployeeController@getUserInfo');
        // 控制台角色切换
        $api->post('get_role_module','App\Modules\Employee\Controllers\EmployeeController@getModuleAndStoreState');
        // 查询店铺角色的员工列表 HappyDong 2019-08-09 14:24
        $api->post('get_barber_list', 'App\Modules\Employee\Controllers\EmployeeController@getBarberList');
        // 获取消息列表接口 HappyDong 2019-08-09 14:24
        $api->post('get_app_message_list', 'App\Modules\Message\Controllers\MessageController@getAppList');
	    // 全部消´息已读接口
	    $api->post('read_all_app_message', 'App\Modules\Message\Controllers\MessageController@readAllAppMessage');
        //
	    $api->post('get_app_message_count', 'App\Modules\Message\Controllers\MessageController@getAppCount');
        // 消息已读接口 HappyDong 2019-08-09 14:24
        $api->post('read_app_message', 'App\Modules\Message\Controllers\MessageController@readAppMessage');

        // 添加理发师 HappyDong 2019-08-03 13:50
        $api->post('add_barber', 'App\Modules\Employee\Controllers\EmployeeController@addBarber');

        // 删除理发师 Raghu 19-8-39
        $api->post('del_barber', 'App\Modules\Employee\Controllers\EmployeeController@delBarber');

        //获取个人信息 Raghu 19-8-15
        $api->post('get_employee_info', 'App\Modules\Employee\Controllers\EmployeeController@getEmployeeInfo');

        //修改个人信息 Raghu 19-8-15
        $api->post('update_employee_info', 'App\Modules\Employee\Controllers\EmployeeController@updateEmployeeInfo');

        // 修改理发师头像  OSS方式
        $api->post("update_employee_portrait", 'App\Modules\Employee\Controllers\EmployeeController@updateEmployeePortrait');

        //获取理发师个人简介
        $api->post('get_employee_profile', 'App\Modules\Employee\Controllers\EmployeeController@getEmployeeProfile');

        //修改理发师个人简介
        $api->post('update_employee_profile', 'App\Modules\Employee\Controllers\EmployeeController@updateEmployeeProfile');

        //查询理发师的日程安排列表 HappyDong 2019-08-09 14:24
        $api->post('get_schedule_by_month', 'App\Modules\Employee\Controllers\EmployeeController@getScheduleByMonth');

        // 设置剪发师提成 HappyDong 2019-07-04 16:50
        $api->post('set_barber_royalty', 'App\Modules\Employee\Controllers\EmployeeController@setBarberRoyalty');
        // 获取理发师提成设置 HappyDong 2019-08-03 13:40
        $api->post('get_barber_royalty', 'App\Modules\Employee\Controllers\EmployeeController@getBarberRoyalty');


        // 获取理发师动态 HappyDong 2019-07-04 16:50
        $api->post('get_dynamic_list_app', 'App\Modules\Employee\Controllers\DynamicController@getDynamicList');

        // 新增理发师动态 HappyDong 2019-07-04 16:50
        $api->post('add_dynamic', 'App\Modules\Employee\Controllers\DynamicController@addDynamic');

        // 编辑理发师动态 HappyDong 2019-07-04 16:50
        $api->post('edit_dynamic', 'App\Modules\Employee\Controllers\DynamicController@editDynamic');

        // 理发师删除动态 delDynamic HappyDong 2019-08-09 16:47
        $api->post('del_dynamic', 'App\Modules\Employee\Controllers\DynamicController@delDynamic');
        //根据角色获取店铺的员工列表 HappyDong 2019-08-09 16:47
        $api->post('get_user_info_by_role', 'App\Modules\Employee\Controllers\EmployeeController@getUserInfoByRole');

        // 获取店铺的当前时间的请假人数详情
        $api->post('get_store_rest_list_app', 'App\Modules\Employee\Controllers\EmployeeController@getStoreRestList');

        // 获取理发师上班日程 HappyDong 2019-08-09 16:47
        $api->post('get_schedule_app', 'App\Modules\Order\Controllers\OrderController@onDutyTimeApp');

        // 获取理发师某天预约时间列表 HappyDong 2019-08-09 16:47
        $api->post('get_day_appointment_app', 'App\Modules\Order\Controllers\OrderController@dayAppointmentApp');
        // 获取预约列表 Raghu 10-19
        $api->post('get_appointment_app', 'App\Modules\Order\Controllers\OrderController@getAppointmentApp');

	    // 预约开单列表
	    $api->post('get_appointment_bill_order_list','App\Modules\Order\Controllers\OrderController@getAppointBillOrderList');

        // 新增排班日期 HappyDong 2019-08-09 16:47
        $api->post('set_work_day', 'App\Modules\Employee\Controllers\EmployeeController@setWorkDay');

        // 新增作品集 HappyDong 2019-08-09 16:47
        $api->post('add_portfolio', 'App\Modules\Employee\Controllers\PortfolioController@addPortfolio');
	    // 编辑作品集 HappyDong 2019-08-09 16:47
	    $api->post('edit_portfolio', 'App\Modules\Employee\Controllers\PortfolioController@editPortfolio');
        // 查询作品集 HappyDong 2019-08-09 16:48
        $api->post('get_portfolio_list_app', 'App\Modules\Employee\Controllers\PortfolioController@getPortfolioListApp');
        // 删除作品集 HappyDong 2019-08-09 16:48
        $api->post('del_portfolio', 'App\Modules\Employee\Controllers\PortfolioController@delPortfolio');

        // 查询理发师的县令币余额
	    $api->post('get_barber_coin','App\Modules\Employee\Controllers\EmployeeController@getEmployeeCoinInfo');

        // app端线下预约下单
        $api->post('offline_appointment', 'App\Modules\Order\Controllers\OfflineController@offlineAppointmentOrder');
        // 理发师确认预约订单
        $api->post('confirm_appointment', 'App\Modules\Order\Controllers\OrderController@confirmAppointmentOrder');
        // 理发师确认订单完成
        $api->post('order_finished', 'App\Modules\Order\Controllers\OrderController@orderFinished');

        // 理发师取消订单
	    $api->post('order_cancel_app', 'App\Modules\Order\Controllers\OrderController@cancelOrderApp');

        // 理发师申请取消订单
        $api->post('withdraw_app', 'App\Modules\Order\Controllers\OrderController@withdrawApp');
        // 拒绝取消预约订单申请
        $api->post('refuse_cancel_order_app', 'App\Modules\Order\Controllers\OrderController@refusedCancelApply');
        // 撤回取消预约订单申请
        $api->post('destroy_cancel_order_app', 'App\Modules\Order\Controllers\OrderController@destroyCancelApplyApp');
        // 同意取消预约订单申请
        $api->post('agree_cancel_order_app', 'App\Modules\Order\Controllers\OrderController@agreeCancelApplyApp');
        // 读取拒绝取消预约订单申请的信息
        $api->post('read_cancel_order_app', 'App\Modules\Order\Controllers\OrderController@readCancelReasonApp');


        // 理发师取消预约订单完成
        $api->post('cancel_appointment_app', 'App\Modules\Order\Controllers\OrderController@cancelAppointmentApp');

        // 搜索 线下订单搜索订单
        $api->post('get_offline_order_list', 'App\Modules\Order\Controllers\OfflineController@getOfflineOrderList');
        // 线下订单统计
        $api->post('get_offline_order_statistics', 'App\Modules\Order\Controllers\OfflineController@getOfflineStatistics');
        // 搜索 店长订单列表
        $api->post('get_order_list_app', 'App\Modules\Order\Controllers\OrderController@getOrderList');

        // 搜索 理发师订单列表
        $api->post('get_my_order_list_app', 'App\Modules\Order\Controllers\OrderController@getMyOrderList');

        // 新增评论回复
        $api->post('add_order_comment_reply_app', 'App\Modules\Order\Controllers\OrderController@addCommentReply');

        // 删除评论回复
        $api->post('del_order_comment_reply', 'App\Modules\Order\Controllers\OrderController@delOrderCommentReply');

        // 七天营业额
        $api->post('week_turn_over', 'App\Modules\Order\Controllers\OrderController@weekTurnOver');

        // 新增到店消费
        $api->post('add_offline_order', 'App\Modules\Order\Controllers\OfflineController@addOfflineOrder');



        //创建店铺 Raghu 19-6-25
        $api->post('create_store', 'App\Modules\Store\Controllers\StoreController@createStore');

        //根据店铺id获取店铺名 Raghu 19-8-1
        $api->post('get_store', 'App\Modules\Store\Controllers\StoreController@getStoreNameById');

        //查询邀请码是否存在 Raghu 19-7-30
        $api->post('check_invite_code', 'App\Modules\Partner\Controllers\PartnerController@isExistInviteCode');

        //店铺休息 Raghu 19-7-8
        $api->post('close_open_store', 'App\Modules\Store\Controllers\StoreController@closeOpenStore');

        //查询店铺基础信息
        $api->post('get_store_info_app', 'App\Modules\Store\Controllers\StoreController@getStoreInfoApp');
        //修改店铺信息 Raghu 19-6-26
        $api->post('update_store', 'App\Modules\Store\Controllers\StoreController@updateStore');

        // 以OSS地址方式保存店铺logo
        $api->post("update_store_logo", 'App\Modules\Store\Controllers\StoreController@updateStoreLogo');


        //获取店铺收款码
        $api->post('get_store_payment_code', 'App\Modules\Store\Controllers\StoreController@getStorePaymentCode');

        //获取店铺支付方式提成 Raghu 19-7-27
        $api->post('get_store_payment_royalty', 'App\Modules\Store\Controllers\StoreController@getStorePaymentRoyalty');
        //修改店铺支付方式提成 Raghu 19-7-27
        $api->post('update_store_payment_royalty', 'App\Modules\Store\Controllers\StoreController@updateStorePaymentRoyalty');


        // 店铺介绍 Raghu 8-19
        $api->post('get_store_profile', 'App\Modules\Store\Controllers\StoreController@getStoreProfile');

        //保存店铺介绍 Raghu 19-6-26
        $api->post('create_store_profile', 'App\Modules\Store\Controllers\StoreController@createStoreProfile');


        //新增商品 Raghu 7-3
        $api->post('create_goods', 'App\Modules\Inventory\Controllers\GoodsController@createGoods');
        //编辑商品 Raghu 7-3
        $api->post('edit_goods', 'App\Modules\Inventory\Controllers\GoodsController@editGoods');
        //删除商品 Raghu 7-3
        $api->post('del_goods', 'App\Modules\Inventory\Controllers\GoodsController@delGoods');
        //根据id 获取商品 Raghu 7-10
        $api->post('get_goods', 'App\Modules\Inventory\Controllers\GoodsController@getGoods');

        //添加购物车
        $api->post('add_goods_cart', 'App\Modules\Inventory\Controllers\GoodsCartController@addGoodsCart');
        //获取购物车
        $api->post('get_goods_cart', 'App\Modules\Inventory\Controllers\GoodsCartController@getGoodsCart');
        //删除购物车
        $api->post('del_goods_cart', 'App\Modules\Inventory\Controllers\GoodsCartController@delGoodsCart');

        //获取分享可提现金额 Raghu 19-8-18
        $api->post('get_share_withdraw_money_now', 'App\Modules\Partner\Controllers\PartnerController@getShareWithdrawMoneyNow');
        //获取分红可提现金额 Raghu 19-8-18
        $api->post('get_bonus_withdraw_money_now', 'App\Modules\Partner\Controllers\PartnerController@getBonusWithdrawMoneyNow');

        //获取总赚取金额 Raghu 19-8-9
        $api->post('get_withdraw_money_all', 'App\Modules\Partner\Controllers\PartnerController@getWithdrawMoneyAll');


        // 获取某理发师某天的工资详情
        $api->post('get_barber_one_day_salary', 'App\Modules\DataCenter\Controllers\BarberStatisticsController@getBarberOneDaySalary');

        //创建店铺 Raghu 19-6-25
        $api->post('create_store', 'App\Modules\Store\Controllers\StoreController@createStore');

        //查询邀请码是否存在 Raghu 19-7-30
        $api->post('check_invite_code', 'App\Modules\Partner\Controllers\PartnerController@isExistInviteCode');

        //店铺休息 Raghu 19-7-8
        $api->post('close_open_store', 'App\Modules\Store\Controllers\StoreController@closeOpenStore');

        //查询店铺基础信息
        $api->post('get_store_info_app', 'App\Modules\Store\Controllers\StoreController@getStoreInfoApp');
        //修改店铺信息 Raghu 19-6-26
        $api->post('update_store', 'App\Modules\Store\Controllers\StoreController@updateStore');
        //获取店铺收款码
        $api->post('get_store_payment_code', 'App\Modules\Store\Controllers\StoreController@getStorePaymentCode');

        //获取店铺支付方式提成 Raghu 19-7-27
        $api->post('get_store_payment_royalty', 'App\Modules\Store\Controllers\StoreController@getStorePaymentRoyalty');
        //修改店铺支付方式提成 Raghu 19-7-27
        $api->post('update_store_payment_royalty', 'App\Modules\Store\Controllers\StoreController@updateStorePaymentRoyalty');


        //添加店铺相册
        $api->post('create_store_photo', 'App\Modules\Store\Controllers\StoreController@createStorePhoto');
        //删除店铺相册
        $api->post('delete_store_photo', 'App\Modules\Store\Controllers\StoreController@deleteStorePhoto');
        //获取店铺相册
        $api->post('get_store_photo', 'App\Modules\Store\Controllers\StoreController@getStorePhoto');

        //新增店铺服务 Raghu 19-6-26
        $api->post('create_service', 'App\Modules\Service\Controllers\ServiceController@createService');
        //获取店铺服务列表 Raghu 19-6-26
        $api->post('get_service_list', 'App\Modules\Service\Controllers\ServiceController@getServiceList');
        //获取店铺服务列表按分类 Raghu 19-9-21
        $api->post('get_service_group_category', 'App\Modules\Service\Controllers\ServiceController@getServiceTypeAndService');

        //获取店铺服务列表分页 Raghu 19-7-31
        $api->post('get_service_list_page', 'App\Modules\Service\Controllers\ServiceController@getServiceListPage');

        //删除店铺服务 Raghu 19-6-26
        $api->post('del_service', 'App\Modules\Service\Controllers\ServiceController@delService');
        //编辑店铺服务 Raghu 19-6-27
        $api->post('edit_service', 'App\Modules\Service\Controllers\ServiceController@editService');

        //获取剩余服务天数 Raghu 19-10-12
        $api->post('get_service_remaining_days', 'App\Modules\Store\Controllers\RenewalController@getServiceRemainingDays');
        //获取服务费缴纳规则 Raghu 19-6-27
        $api->post('get_renewal_rule', 'App\Modules\Store\Controllers\RenewalController@getRenewalRule');
        //服务费支付宝订单提交 Raghu 19-6-27
        $api->post('renewal_alipay', 'App\Modules\Store\Controllers\RenewalController@renewalAlipay');
        //支付宝支付验签 Raghu 19-6-28
        $api->post('renewal_notify_alipay', 'App\Modules\Store\Controllers\RenewalController@renewalNotifyAlipay');

        //发布门店活动公告 Raghu 19-6-29
        $api->post('create_activity', 'App\Modules\Activity\Controllers\ActivityController@createActivity');
        //编辑门店活动公告 Raghu 19-6-29
        $api->post('edit_activity', 'App\Modules\Activity\Controllers\ActivityController@editActivity');
        //删除门店活动公告 Raghu 19-6-29
        $api->post('del_activity', 'App\Modules\Activity\Controllers\ActivityController@delActivity');
        //获取店铺公告列表 Raghu 19-6-29
        $api->post('get_activity_list_page_app', 'App\Modules\Activity\Controllers\ActivityController@getActivityListPage');
        //获取公告海报图
        $api->post('get_activity_playbill', 'App\Modules\Activity\Controllers\ActivityController@getActivityPlaybill');

        //新增会员卡类 Raghu 19-7-1
        $api->post('create_card_type', 'App\Modules\MemberCard\Controllers\CardTypeController@createCardType');
        //编辑会员卡类 Raghu 19-7-1
        $api->post('edit_card_type', 'App\Modules\MemberCard\Controllers\CardTypeController@editCardType');
        //删除会员卡类 Raghu 19-7-1
        $api->post('del_card_type', 'App\Modules\MemberCard\Controllers\CardTypeController@delCardType');
        //开关会员卡类 Raghu 19-7-1
        $api->post('switch_card_type', 'App\Modules\MemberCard\Controllers\CardTypeController@switchCardType');
        //获取本店所有会员卡类 分页 Raghu 7-1
        $api->post('get_card_type_list_page', 'App\Modules\MemberCard\Controllers\CardTypeController@getCardTypeListPage');
        //获取本店会员卡类数量 Raghu 8-3
        $api->post('get_card_type_num', 'App\Modules\MemberCard\Controllers\CardTypeController@getCardTypeNum');
        //根据卡类id获取会员卡适用服务
        $api->post('get_card_type_service', 'App\Modules\MemberCard\Controllers\CardTypeController@getCardTypeService');
        //根据卡类id获取会员卡类信息 Raghu 9-11
        $api->post('get_card_type_app', 'App\Modules\MemberCard\Controllers\CardTypeController@getCardTypeApp');

        //店铺会员卡统计
        $api->post('get_member_card_num', 'App\Modules\MemberCard\Controllers\MemberCardStatisticsController@getMemberCardNum');

        //店铺某卡类统计
        $api->post('get_type_member_card_num', 'App\Modules\MemberCard\Controllers\MemberCardStatisticsController@getTypeMemberCardNum');

        //店铺会员卡类状态统计
        $api->post('get_status_member_card_num', 'App\Modules\MemberCard\Controllers\MemberCardStatisticsController@getStatusMemberCardNum');

        //店铺老会员统计
        $api->post('get_old_member_card_num', 'App\Modules\MemberCard\Controllers\MemberCardStatisticsController@getOldMemberCardNum');

        //某张会员卡充值总额及余额统计
        $api->post('get_member_card_amount', 'App\Modules\MemberCard\Controllers\MemberCardStatisticsController@getMemberCardAmount');

        //理发师会员卡统计
        $api->post('get_barber_member_card_num', 'App\Modules\MemberCard\Controllers\MemberCardStatisticsController@getBarberMemberCardNum');

        //会员卡申请统计
        $api->post('get_barber_member_card_apply_num', 'App\Modules\MemberCard\Controllers\MemberCardStatisticsController@getBarberMemberCardApplyNum');

        //理发师会员卡提成统计
        $api->post('get_barber_member_card_royalty', 'App\Modules\MemberCard\Controllers\MemberCardStatisticsController@getBarberMemberCardRoyalty');

        //获取某卡类办卡明细
        $api->post('get_take_card_list', 'App\Modules\MemberCard\Controllers\MemberCardStatisticsController@getMemberCardByCardType');


        //获取本店所有会员卡 分页 Raghu 7-1
        $api->post('get_member_card_list_page', 'App\Modules\MemberCard\Controllers\MemberCardController@getMemberCardListPage');
        //获取本店所有会员卡及适用服务 分页 Raghu 7-1
        $api->post('get_member_card_list_page_service', 'App\Modules\MemberCard\Controllers\MemberCardController@getMemberCardListPageService');
        //审核会员卡 Raghu 7-1
        $api->post('examine_member_card', 'App\Modules\MemberCard\Controllers\MemberCardController@examineMemberCard');
        //获取会员卡  Raghu 7-1
        $api->post('get_member_card', 'App\Modules\MemberCard\Controllers\MemberCardController@getMemberCard');
        //会员卡充值  Raghu 7-1
        $api->post('recharge_member_card', 'App\Modules\MemberCard\Controllers\MemberCardController@rechargeMemberCard');
        //会员卡备份  Raghu 8-19
        $api->post('backups_member_card', 'App\Modules\MemberCard\Controllers\MemberCardController@backupsMemberCard');
        //获取会员卡备份记录  Raghu 8-19
        $api->post('get_backups_member_card', 'App\Modules\MemberCard\Controllers\MemberCardController@getBackupsMemberCard');
        //会员卡转移  Raghu 8-3
        $api->post('transfer_member_card', 'App\Modules\MemberCard\Controllers\MemberCardController@transferMemberCard');
        //删除转移会员卡  Raghu 8-12
        $api->post('del_transfer_member_card', 'App\Modules\MemberCard\Controllers\MemberCardController@delTransferMemberCard');
        //编辑转移会员卡 Raghu 8-12
        $api->post('edit_transfer_member_card', 'App\Modules\MemberCard\Controllers\MemberCardController@editTransferMemberCard');
        //获取转移会员卡列表
        $api->post('get_transfer_member_card_list', 'App\Modules\MemberCard\Controllers\MemberCardController@getTransferMemberCardList');
        //获取会员卡消费记录
        $api->post('get_member_card_flow_app', 'App\Modules\MemberCard\Controllers\MemberCardController@getMemberCardFlow');

	    //获取会员卡消费记录 HappyDong 2019-12-13 09:23
	    $api->post('get_member_card_flow_app_new', 'App\Modules\MemberCard\Controllers\MemberCardController@getMemberCardFlowNew');


        //删除会员卡
        $api->post('delete_member_card','App\Modules\MemberCard\Controllers\MemberCardController@deleteMemberCard');

        //理发师添加会员卡 Raghu 8-2
        $api->post('create_member_card', 'App\Modules\MemberCard\Controllers\MemberCardController@createMemberCard');
        //获取本店会员卡数 Raghu 8-2
        $api->post('get_store_member_crad_num', 'App\Modules\MemberCard\Controllers\MemberCardController@getStoreMemberCradNum');
        //理发师获取本人未审核会员卡
        $api->post('get_not_audited_member_card','App\Modules\MemberCard\Controllers\MemberCardController@getNotAuditedMemberCard');
        //理发师获取本人未审核会员卡
        $api->post('get_not_audited_member_card_num','App\Modules\MemberCard\Controllers\MemberCardController@getNotAuditedMemberCardNum');
        //新增商品分类 Raghu 7-2
        $api->post('create_goods_category', 'App\Modules\Inventory\Controllers\GoodsCategoryController@createGoodsCategory');
        //编辑商品分类 Raghu 7-2
        $api->post('edit_goods_category', 'App\Modules\Inventory\Controllers\GoodsCategoryController@editGoodsCategory');
        //删除商品分类 Raghu 7-2
        $api->post('del_goods_category', 'App\Modules\Inventory\Controllers\GoodsCategoryController@delGoodsCategory');
        //获取商品分类列表 Raghu 7-2
        $api->post('get_goods_category_list', 'App\Modules\Inventory\Controllers\GoodsCategoryController@getGoodsCategoryList');
        // 今日营业额
        $api->post('order_today', 'App\Modules\Order\Controllers\OrderController@orderToday');

        //获取外卖的商品
        $api->post('get_sell_goods_list', 'App\Modules\Inventory\Controllers\GoodsController@getsellGoodsList');

        //获取分类及商品 Raghu 7-3
        $api->post('get_goods_list_search', 'App\Modules\Inventory\Controllers\GoodsController@getGoodsListSearch');
        //商品入库 Raghu 7-10
        $api->post('goods_instock', 'App\Modules\Inventory\Controllers\InstockController@goodsInstock');
        //商品入库记录 Raghu 8-17
        $api->post('goods_instock_record', 'App\Modules\Inventory\Controllers\InstockController@goodsInstockRecord');
        //商品销售 Raghu 7-10
        $api->post('goods_sale', 'App\Modules\Inventory\Controllers\InstockController@goodsSale');
        //商品销售记录 Raghu 8-7
        $api->post('get_myself_goods_sale_record', 'App\Modules\Inventory\Controllers\InstockController@getMyselfGoodsSaleRecord');
        //商品销售记录 Raghu 8-7
        $api->post('get_store_goods_sale_record', 'App\Modules\Inventory\Controllers\InstockController@getStoreGoodsSaleRecord');

        //商品使用 Raghu 7-11
        $api->post('goods_use', 'App\Modules\Inventory\Controllers\InstockController@goodsUse');
        //店长获取理发师领料记录 Raghu 7-11
        $api->post('get_barber_use_goods_record', 'App\Modules\Inventory\Controllers\InstockController@getBarberUseGoodsRecord');
        //理发师获取本人领料记录 Raghu 7-12
        $api->post('get_myself_use_goods_record', 'App\Modules\Inventory\Controllers\InstockController@getMyselfUseGoodsRecord');

        // 会员卡数据统计
        $api->post('statistics_member_card', 'App\Modules\DataCenter\Controllers\StatisticsController@statisticsMemberCard');
        // getDayMemberCard
        $api->post('get_day_member_card', 'App\Modules\DataCenter\Controllers\StatisticsController@getDayMemberCard');

        // 获取员工工资列表
        $api->post('get_store_salary', 'App\Modules\DataCenter\Controllers\StatisticsController@getStoreSalary');

        // 获取服务大类
        $api->post('get_service_type', 'App\Modules\Service\Controllers\ServiceController@getServiceType');

        // 销售排行
        $api->post('get_sales_rank', 'App\Modules\DataCenter\Controllers\StatisticsController@getSalesRank');


        //我的工资列表 理发师
        $api->post('get_my_salary_info', 'App\Modules\DataCenter\Controllers\BarberStatisticsController@getMySalaryInfo');

        //理发师查询 某天的会员卡列表
        $api->post('get_barber_day_member_card', 'App\Modules\DataCenter\Controllers\BarberStatisticsController@getBarberDayMemberCard');
        // 获取理发师今日办理会员卡 barberMemberCard
        $api->post('get_barber_today_memberCard', 'App\Modules\DataCenter\Controllers\BarberStatisticsController@getBarberTodayMemberCard');

        //  获取理发师今日经营数据 getBarberTodayData
        $api->post('get_barber_today_data', 'App\Modules\DataCenter\Controllers\BarberStatisticsController@getBarberTodayData');
        // 获取理发师一周提成 weekRoyalty
        $api->post('week_royalty', 'App\Modules\DataCenter\Controllers\BarberStatisticsController@weekRoyalty');

        //城市合伙人 获取邀请店铺记录 Raghu 7-26
        $api->post('get_invite_store_record', 'App\Modules\Partner\Controllers\PartnerController@getInviteStoreRecord');

        //城市合伙人 获取提现记录 Raghu 7-26
        $api->post('get_withdraw', 'App\Modules\Partner\Controllers\PartnerController@getWithdraw');

        //城市合伙人 发起提现申请 Raghu 7-26
        $api->post('apply_withdraw', 'App\Modules\Partner\Controllers\PartnerController@applyWithdraw');

        //城市合伙人 达标指数头部 Raghu 7-26
        $api->post('get_partner_info', 'App\Modules\Partner\Controllers\PartnerController@getStandardIndexHeader');

        //城市合伙人 达标指数 Raghu 8-18
        $api->post('get_standard_index', 'App\Modules\Partner\Controllers\PartnerController@getStandardIndex');

        //城市合伙人 获取用户账单 Raghu 7-26
        $api->post('get_user_account', 'App\Modules\Partner\Controllers\PartnerController@getUserAccount');

        //获取店铺排名
        $api->post('get_store_rank', 'App\Modules\DataCenter\Controllers\StatisticsController@getStoreRank');

        //近期天客户来源数据
        $api->post('week_customs', 'App\Modules\DataCenter\Controllers\StatisticsController@weekCustoms');

        // 定时任务 写入数据库理发师排名userRank
//        $api->post('user_rank', 'App\Modules\DataCenter\Controllers\BarberStatisticsController@userRank');

        // 获取理发师列表
        $api->post('get_user_rank', 'App\Modules\DataCenter\Controllers\BarberStatisticsController@getUserRank');
        // 理发师工资 计划任务
        $api->post('barber_salary_add', 'App\Modules\DataCenter\Controllers\BarberStatisticsController@barberSalaryAdd');

        // 计划任务店铺排名
        $api->post('rank_store', 'App\Modules\DataCenter\Controllers\StatisticsController@rankStore');

		// 设置店铺角色
        $api->post('set_user_store_role', 'App\Modules\Store\Controllers\StoreController@setUserStoreRole');
        // 获取角色列表
        $api->post('get_role_list', 'App\Modules\System\Controllers\CommonController@getRoleList');

        // 生成邀请码图片
        $api->post('invite_img', 'App\Modules\Partner\Controllers\PartnerController@inviteImg');

        // 理发师数据中心头部信息
        $api->post('get_barber_data_center_header', 'App\Modules\DataCenter\Controllers\BarberStatisticsController@getBarberDataCenterHeader');
        // 理发师数据中心经营分析
        $api->post('get_barber_data_business_analysis', 'App\Modules\DataCenter\Controllers\BarberStatisticsController@getBarberDataBusinessAnalysis');
        // 理发师数据中心经营分析详情
        $api->post('get_barber_data_business_analysis_details', 'App\Modules\DataCenter\Controllers\BarberStatisticsController@getBarberDataBusinessAnalysisDetails');
        // 理发师数据中心昨日经营数据
        $api->post('get_barber_data_yesterday_overview', 'App\Modules\DataCenter\Controllers\BarberStatisticsController@getBarberDataYesterdayOverview');
        // 获取理发师访客统计
        $api->post('get_barber_visitor_record', 'App\Modules\DataCenter\Controllers\BarberStatisticsController@getBarberVisitorRecord');
        // 获取理发师访客记录
        $api->post('get_barber_visitor_list', 'App\Modules\DataCenter\Controllers\BarberStatisticsController@getBarberVisitorList');

        //获取理发师订单列表 Raghu 8-20
        $api->post('get_barber_center_order_list', 'App\Modules\DataCenter\Controllers\BarberStatisticsController@getBarberCenterOrderList');
        // 理发师数据中心 订单部分数据 Raghu 8-20
        $api->post('get_barber_center_order_data', 'App\Modules\DataCenter\Controllers\BarberStatisticsController@getOrderData');
        // 理发师数据中心 订单饼图 Raghu 8-20
        $api->post('get_barber_center_order_pie_data', 'App\Modules\DataCenter\Controllers\BarberStatisticsController@getPieChartOrderData');

        //理发师数据中心 会员卡数据 Raghu 8-20
        $api->post('get_barber_center_member_card_data', 'App\Modules\DataCenter\Controllers\BarberStatisticsController@getMemberCardDataCenter');
        //理发师数据中心 会员卡订单列表数据 Raghu 8-28
        $api->post('get_barber_center_card_flow_list', 'App\Modules\DataCenter\Controllers\BarberStatisticsController@getCardFlowDataCenter');
        //理发师数据中心 指定用户数据前五条 Raghu 9-1
        $api->post('get_barber_center_order_point', 'App\Modules\DataCenter\Controllers\BarberStatisticsController@getOrderPoint');
        //理发师数据中心 指定用户数据 Raghu 8-21
        $api->post('get_barber_center_order_point_data', 'App\Modules\DataCenter\Controllers\BarberStatisticsController@getOrderPointData');
        //理发师数据中心 数据中心 服务排名列表 Raghu 8-21
        $api->post('get_barber_center_order_service_list', 'App\Modules\DataCenter\Controllers\BarberStatisticsController@getOrderServiceList');
        //理发师数据中心 数据中心 服务排名 Raghu 8-21
        $api->post('get_barber_center_order_service_data', 'App\Modules\DataCenter\Controllers\BarberStatisticsController@getOrderServiceData');
        //理发师数据中心 数据中心 工资 Raghu 8-21
        $api->post('get_barber_center_barber_salary_data', 'App\Modules\DataCenter\Controllers\BarberStatisticsController@getCenterUserSalaryList');
        //理发师数据中心 数据中心 某月工资 Raghu 8-21
        $api->post('get_barber_center_barber_month_salary_data', 'App\Modules\DataCenter\Controllers\BarberStatisticsController@getCenterUserMonthSalaryList');
        //理发师数据中心汇总 Raghu 8-25
        $api->post('get_barber_center_all', 'App\Modules\DataCenter\Controllers\BarberStatisticsController@getBarberCenterAll');
        //理发师粉丝列表 Raghu 8-30
        $api->post('get_barber_fans_list', 'App\Modules\Employee\Controllers\EmployeeController@getBarberFansList');
        //理发师今日粉丝数 Raghu 8-30
        $api->post('get_today_barber_fans_num', 'App\Modules\Employee\Controllers\EmployeeController@getTodayBarberFansNum');

        //店长数据中心员工业绩 头部信息 Raghu 9-25
        $api->post('get_employee_achievement_header', 'App\Modules\DataCenter\Controllers\EmployeeAchievementController@getEmployeeAchievementHeader');
        //店长数据中心员工业绩 服务占比 Raghu 9-25
        $api->post('get_employee_achievement_service_rate', 'App\Modules\DataCenter\Controllers\EmployeeAchievementController@getEmployeeAchievementServiceRate');
        //店长数据中心员工业绩 提成明细 Raghu 9-25
        $api->post('get_employee_achievement_royalty', 'App\Modules\DataCenter\Controllers\EmployeeAchievementController@getEmployeeAchievementRoyalty');

        // 数据中心
        $api->post('boss_data_center', 'App\Modules\System\Controllers\TestController@getBossDataCenter');

        //店铺注销 Raghu 8-22
        $api->post('cancellation_store', 'App\Modules\Store\Controllers\StoreController@cancellationStore');

        //获取公告类型
        $api->post('get_enroll_activity_list', 'App\Modules\Activity\Controllers\ActivityController@getEnrollActivityList');



        // 查询服务价格
	    $api->post('get_haircut_total_price','App\Modules\Order\Controllers\OrderController@getHairCutServiceTotalPrice');

	    // 排班任务
	    $api->post('rewrite_schedule','App\Modules\Employee\Controllers\EmployeeController@rewriteSchedule');

	    //创建服务账单 fixed HappyDong 2019-11-15 14:43
        $api->post('create_service_bill','App\Modules\Cashier\Controllers\CashierController@createServiceBill');
        //创建会员卡账单 Rag hu 10-19
        $api->post('create_member_card_bill','App\Modules\Cashier\Controllers\CashierController@createMemberCardBill');
        //创建商品账单 Rag hu 10-19
        $api->post('create_goods_bill','App\Modules\Cashier\Controllers\CashierController@createGoodsBill');
        //创建会员卡充值账单 Rag hu 10-19
        $api->post('create_member_card_recharge_bill','App\Modules\Cashier\Controllers\CashierController@createMemberCardRechargeBill');
	    // 创建和付款办理会员卡
	    $api->post('create_and_pay_member_card_bill','App\Modules\Cashier\Controllers\CashierController@createAndPayMemberCardBill');
		// 查看收银订单详情 HappyDong 2019-11-22 14:26
	    $api->post('get_bill_detail_info','App\Modules\Cashier\Controllers\CashierController@getBillOrderDetail');

        //获取收银账单列表
        $api->post('get_store_bill','App\Modules\Cashier\Controllers\CashierController@getStoreBill');


	    //商品开单支付二合一
	    $api->post('create_pay_goods_bill','App\Modules\Cashier\Controllers\CashierController@createAndPayGoodsBill');

		// 服务开单二合一
	    $api->post('create_pay_service_bill','App\Modules\Cashier\Controllers\CashierController@createAndPayServiceBill');

		// 会员卡充值二合一
	    $api->post('create_pay_member_card_recharge_bill','App\Modules\Cashier\Controllers\CashierController@createAndPayMemberCardRechargeBill');


	    // 理发师收到的礼物列表
	    $api->post('get_receive_gift_list','App\Modules\Gift\Controllers\GiftController@giftListByBarberId');

		// 新增优惠券
	    $api->post('create_coupon','App\Modules\Coupon\Controllers\CouponBossController@create');

	    // 编辑优惠券
	    $api->post('edit_coupon','App\Modules\Coupon\Controllers\CouponBossController@edit');

	    // 删除优惠券
	    $api->post('del_coupon','App\Modules\Coupon\Controllers\CouponBossController@del');

	    // 发布优惠券
	    $api->post('post_coupon','App\Modules\Coupon\Controllers\CouponBossController@post');

	    // 理发师发布优惠券
	    $api->post('post_coupon_to_member','App\Modules\Coupon\Controllers\CouponBarberController@postToMember');

	    // 理发师获取优惠券列表
	    $api->post('get_coupon_store_list','App\Modules\Coupon\Controllers\CouponBarberController@getCouponList');


	    // 某类优惠券使用情况
	    $api->post('get_coupon_send_used_list','App\Modules\Coupon\Controllers\CouponBossController@couponSendAndUsedList');

	    // 优惠券回收
	    $api->post('coupon_return_list','App\Modules\Coupon\Controllers\CouponBossController@back');




		// 获取领取某理发师发布的优惠券的领取情况列表
	     $api->post('get_receive_member_coupon_list','App\Modules\Coupon\Controllers\CouponBarberController@getReceiveMemberCouponList');

	     // 理发师消费县令币
	    $api->post('consumed_coin_barber_live','App\Modules\Employee\Controllers\EmployeeController@consumedCoin');

	    // 理发师直播发红包
	    $api->post('send_red_bag_to_member','App\Modules\RedBag\Controllers\RedBagBarberController@send');
		// 红包回收
	    $api->post('red_bag_return','App\Modules\RedBag\Controllers\RedBagBarberController@redBagBack');

		// 用户领取理发的红包列表
	    $api->post('red_bag_list','App\Modules\RedBag\Controllers\RedBagMemberController@lst');




        // 系统角色列表
	    $api->post('get_sys_role_list','App\Modules\System\Controllers\SystemController@getRoleList');

	    // 预约列表pad
	    $api->post('get_appointment_pad', 'App\Modules\Order\Controllers\OrderController@getAppointmentApp');

	    // 新增预约pad
	    $api->post('add_appointment_pad', 'App\Modules\Order\Controllers\OfflineController@offlineAppointmentOrder');

	    // 获取理发师的服务列表
	    $api->post('get_barber_service_list_pad','App\Modules\Employee\Controllers\EmployeeController@getBarberServiceListApp');
	    // 理发获取自己的服务列表
	    $api->post('get_barber_service_app','App\Modules\Employee\Controllers\EmployeeController@getBarberServiceList');





	    //直播模块
        //获取直播信息
        $api->post('get_live_info', 'App\Modules\Live\Controllers\LiveController@getLiveInfo');
        //创建直播间
        $api->post('create_live', 'App\Modules\Live\Controllers\LiveController@createLive');
        //关闭直播间
        $api->post('edit_live', 'App\Modules\Live\Controllers\LiveController@editLive');
        //获取在线用户列表
        $api->post('get_live_member_list_page', 'App\Modules\Live\Controllers\LiveController@getLiveMemberListPage');
        //主播认证
        $api->post('create_authentication', 'App\Modules\Live\Controllers\LiveController@createAuthentication');
        //获取主播认证
        $api->post('get_authentication', 'App\Modules\Live\Controllers\LiveController@getAuthentication');
        //获取签名
        $api->post('get_sig', 'App\Modules\Live\Controllers\LiveController@getSig');
        //用户关注
        $api->post('create_attention', 'App\Modules\Live\Controllers\LiveController@createLiveAttention');
        //用户取消关注
        $api->post('update_attention', 'App\Modules\Live\Controllers\LiveController@updateLiveAttention');
        //上热门
        $api->post('create_hot', 'App\Modules\Live\Controllers\LiveController@createHot');
        //获取直播数据
        $api->post('get_live_data', 'App\Modules\Live\Controllers\LiveController@getLiveData');


    });

    $api->group(['prefix' => 'common'], function ($api) {


        // 公共 不需要认证
        //$api->get('test','App\Modules\System\Controllers\TestController@test');
        // 注册
        $api->post('register', 'App\Modules\Employee\Controllers\EmployeeController@registerUser');
        // 用户登录
        $api->post('login', 'App\Modules\System\Controllers\CommonController@login');

        $api->post('forgot_password', 'App\Modules\System\Controllers\CommonController@forgotPasswordUser');

        //发送手机验证码 Raghu 7-29
        $api->post('send_sms', 'App\Modules\System\Controllers\CommonController@sendSms');

        //图片上传接口 Raghu 19-7-23
        $api->post('upload_img', 'App\Modules\System\Controllers\ImageController@uploadImg');
        //视频上传接口 Raghu 19-7-23
        $api->post('upload_video', 'App\Modules\System\Controllers\VideoController@uploadVideo');


        // 上传OSS视频，只是一个OSS的访问路径
        $api->post('upload_oss_video', 'App\Modules\System\Controllers\VideoController@uploadOSSVideo');
        // 上传OSS图片，只是一个OSS的访问路径
        $api->post('upload_oss_image', 'App\Modules\System\Controllers\ImageController@uploadOSSImage');

        $api->post('get_role_auth_list', 'App\Modules\System\Controllers\CommonController@getRoleAuthList');

        //获取商品规格单位 Raghu 19-8-14
        $api->post('get_goods_specs', 'App\Modules\Inventory\Controllers\GoodsController@getGoodsSpecs');

        //获取分享图
        $api->get('get_share_image', 'App\Modules\System\Controllers\ImageController@getShareImage');

        //检测app版本
        $api->post('get_app_version', 'App\Modules\System\Controllers\VersionController@getAppVersion');

    });
});
